namespace Upeu.Venta.Data.UpeuVentaDataContextMigrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class Initial : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.TipoProveedores",
                c => new
                    {
                        Idtipoproveedor = c.Guid(nullable: false, identity: true),
                        Nombre = c.String(nullable: false),
                        Estado = c.Int(),
                    })
                .PrimaryKey(t => t.Idtipoproveedor);
            
            DropTable("dbo.Compras");
        }
        
        public override void Down()
        {
            CreateTable(
                "dbo.Compras",
                c => new
                    {
                        Id = c.Guid(nullable: false, identity: true),
                        Serie = c.String(),
                        NumeroDocumento = c.String(),
                        FechaCom = c.DateTime(nullable: false),
                        FechaRe = c.DateTime(nullable: false),
                    })
                .PrimaryKey(t => t.Id);
            
            DropTable("dbo.TipoProveedores");
        }
    }
}
